package com.ara.common.project.constant;

import com.alibaba.android.arouter.launcher.ARouter;

import java.util.List;

/**
 * Created by XieXin on 2020/7/9.
 * 路由api
 */
public class XRouterApiHolder {
    /**
     * 跳转到大图查看
     */
    public static void jumpLargePictureViewActivity(List<String> images, int index) {
        ARouter.getInstance()
                .build(XRouterApiConstant.API_LARGE_PICTURE_VIEW)
                .withObject("images", images)
                .withInt("index", index)
                .navigation();
    }

    /**
     * 跳转到 待机页面
     */
    public static void jumpStandbyActivity() {
        ARouter.getInstance()
                .build("/train/Standby")
//                .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK)
//                .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
                .navigation();
    }
}
